<extend name="Public/base"/>
<block name="content">
    <div class="row-fluid">
        <form class="form-horizontal" action="{:U('processEdit')}" method="post">
            <fieldset>
                <legend>编辑流程业务</legend>
                <div class="control-group">
                    <label class="control-label">流程号</label>
                    <div class="controls">
                        <input type="text" readonly class="input-xs" value="{$process_one[0]['process_id']}" name="process_id">
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">流程名称</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$process_one[0]['title']}" name="title">
                    </div>
                </div> <div class="control-group">
                    <label class="control-label">状态</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$process_one[0]['tag']}" name="tag">
                    </div>
                </div> <div class="control-group">
                    <label class="control-label">排序</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$process_one[0]['px']}" name="px">
                    </div>
                </div> <div class="control-group">
                    <label class="control-label">发邮件</label>
                    <div class="controls">
						<in name="vo['id']" value="$process_one[0]['email_tag']">
							<input type="radio" name="email_tag" checked="checked" value="1">发邮件
							<input type="radio" name="email_tag" value="0">不发邮件
						<else />
							<input type="radio" name="email_tag" value="1">发邮件
							<input type="radio" name="email_tag" checked="checked" value="0">不发邮件
						</in>
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">邮件标题</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$process_one[0]['send_email_title']}" name="send_email_title">
                    </div>
                </div>

				 <div class="control-group">
                    <label class="control-label">邮件内容</label>
                    <div class="controls">
                        <textarea class="textarea" name="email_content" style="width:370px;">{$process_one[0]['email_content']}</textarea>
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">可执行功能</label>
                    <div class="controls">
						<foreach name="fun_id" item="vo">
							<in name="vo['id']" value="$process_one[0]['task_menu']">
								<input type="checkbox" name="task_menu[]" value="{$vo['id']}" checked /> {$vo['title']}
								<else />
								<input type="checkbox" name="task_menu[]" value="{$vo['id']}"/> {$vo['title']}
							</in>
						</foreach>
                    </div>
                </div>
				 <div class="control-group">
                    <label class="control-label">指定用户</label>
                    <div class="controls">
						<foreach name="user_list" item="vo" >
							<in name="vo['id']" value="$process_one[0]['check_user']">
								<input type="checkbox" name="check_user[]" value="{$vo['id']}" checked /> {$vo['username']}
								<else />
								<input type="checkbox" name="check_user[]" value="{$vo['id']}"/> {$vo['username']}
							</in>
						</foreach>
                    </div>
                </div>
				<div class="control-group">
                    <label class="control-label">全显账号</label>
                    <div class="controls">
						<foreach name="user_list" item="vo" >
							<in name="vo['id']" value="$process_one[0]['show_user_id']">
								<input type="checkbox" name="show_user_id[]" value="{$vo['id']}" checked /> {$vo['username']}
								<else />
								<input type="checkbox" name="show_user_id[]" value="{$vo['id']}"/> {$vo['username']}
							</in>
						</foreach>
                    </div>
                </div> 
				 <div class="control-group">
                    <label class="control-label">检查用户</label>
                    <div class="controls">
						<in name="vo['id']" value="$process_one[0]['check_user_tag']">
							<input type="radio" name="check_user_tag" checked="checked" value="1">检查
							<input type="radio" name="check_user_tag" value="0">不检查
						<else />
							<input type="radio" name="check_user_tag" value="1">检查
							<input type="radio" name="check_user_tag" checked="checked" value="0">不检查
						</in>
                    </div>
                </div>
				<!-- <div class="control-group">
                    <label class="control-label">显示条件</label>
                    <div class="controls">
                        <input type="text" class="span6" value="{$process_one[0]['show_button_tag']}" name="show_button_tag">
                    </div>
                </div> -->
				
                <div class="form-actions">
                	<input type="hidden" name="id" value="{$process_one[0]['id']}">
                    <button type="submit" class="btn btn-primary">更新</button>
                </div>
            </fieldset>
        </form>
    </div>
</block>
